package com.ccl.iot.privates;import android.graphics.Canvas;
import android.graphics.RectF;

public abstract class BitmapMask {
	private RectF iRect = null;

	public BitmapMask(RectF aRect){
		iRect = aRect;
	}
		
	public String getHashCode(){
		if (iRect != null){
			return this.getClass().getSimpleName() + "@" + iRect.toString();
		}
		
		return this.getClass().getSimpleName();
	}
	
	public abstract boolean paintMask(Canvas aCanvas, RectF aRect);
	
	public boolean paintMask(Canvas aCanvas){
		return paintMask(aCanvas, iRect);
	}
}
